package com.cwm.test.liability;

// 抽象处理者
public abstract class Handler {
    protected Handler successor; // 下一个处理者

    public void setSuccessor(Handler successor) {
        this.successor = successor;
    }

    public abstract void handleRequest(int request);
}